//
//  MSMessageFeedback.m
//  TravelGuideMdd
//
//  Created by BigPolarBear on 13-6-23.
//  Copyright (c) 2013年 mafengwo.com. All rights reserved.
//

#import "MSMessageFeedback.h"

@implementation MSMessageFeedback

//+(MSMessage*)messageWithDictionary:(NSDictionary *)dict
//{
//    if (!dict || dict.allKeys.count == 0) {
//        return nil;
//    }
//    
//    MSMessageFeedback* msg = [[[MSMessageFeedback alloc]init]autorelease];
//    msg.source = [NSMutableDictionary dictionaryWithDictionary:dict];
//    
//    return msg;
//}

-(BOOL)fromUser
{
    return [self.source boolValueForKey:MSMessageFeedbackKeyFromUser];
}


-(NSString*)description
{
    return [NSString stringWithFormat:@"MSMessageFeedback:\nmsgContent:%@\nfromUser:%d\ntimeStamp:%@",
            self.msgContent,self.fromUser,self.timestamp];
}


@end
